package com.yunsc.order.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.yunsc.common.validator.ValidationGroups;
import com.yunsc.order.entity.YunscRechargePlanEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-06-03 22:01
 */
@Data
public class RechargePlanDTO {
    @JsonProperty("planId")
    @NotNull(message = "套餐id不能为空", groups = {ValidationGroups.Update.class, ValidationGroups.Delete.class})
    private Integer planId;
    private YunscRechargePlanEntity form;
    @ApiModelProperty(value = "页码", required = true)
    private Integer page = 1; // 设置默认页码为1
    @ApiModelProperty(value = "页码大小")
    @JsonProperty("pageSize")
    private Integer pageSize = 15; // 设置默认页码大小为1
    @ApiModelProperty(value = "搜索条件")
    private String search;
}
